package com.acwebsitedesign.uRateDrugs.domain;

import java.util.Date;

import org.springmodules.validation.bean.conf.loader.annotation.handler.NotBlank;

public class Review {
	
	private int id;
	private int rating;
	@NotBlank
	private String reasonForTaking;
	@NotBlank
	private String reviewText;
	private Date date;
	private Boolean positiveReview;
	private int user_id;
	private int drug_id;
	
	public Review (){
	}
	
	public Review (int rating, String reasonForTaking, String reviewText, Date date, Boolean positiveReview){
		this.rating = rating;
		this.reasonForTaking = reasonForTaking;
		this.reviewText = reviewText;
		this.date = date;
		this.positiveReview = positiveReview;
	}
	
	public Review (int id, int rating, String reasonForTaking, String reviewText, Date date, Boolean positiveReview){
		this.id = id;
		this.rating = rating;
		this.reasonForTaking = reasonForTaking;
		this.reviewText = reviewText;
		this.date = date;
		this.positiveReview = positiveReview;
	}
	
	public Review (int rating, String reasonForTaking, String reviewText, Date date, Boolean positiveReview, int user_id, int drug_id){
		this.rating = rating;
		this.reasonForTaking = reasonForTaking;
		this.reviewText = reviewText;
		this.date = date;
		this.positiveReview = positiveReview;
		this.user_id = user_id;
		this.drug_id = drug_id;
	}
	
	public Review (int id, int rating, String reasonForTaking, String reviewText, Date date, Boolean positiveReview, int user_id, int drug_id){
		this.id = id;
		this.rating = rating;
		this.reasonForTaking = reasonForTaking;
		this.reviewText = reviewText;
		this.date = date;
		this.positiveReview = positiveReview;
		this.user_id = user_id;
		this.drug_id = drug_id;
	}

	public int getRating() {
		return rating;
	}

	public void setRating(int rating) {
		this.rating = rating;
	}

	public String getReasonForTaking() {
		return reasonForTaking;
	}

	public void setReasonForTaking(String reasonForTaking) {
		this.reasonForTaking = reasonForTaking;
	}

	public String getReviewText() {
		return reviewText;
	}

	public void setReviewText(String reviewText) {
		this.reviewText = reviewText;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Boolean getPositiveReview() {
		return positiveReview;
	}

	public void setPositiveReview(Boolean positiveReview) {
		this.positiveReview = positiveReview;
	}

	public int getUser_id() {
		return user_id;
	}

	public void setUser_id(int userId) {
		user_id = userId;
	}

	public int getDrug_id() {
		return drug_id;
	}

	public void setDrug_id(int drugId) {
		drug_id = drugId;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	
	
}
